From 804d3c8fa2275ee8af41e32c1178f77f46e59b4a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 20 May 2011 10:15:00 -0300 Subject: [PATCH] * lisp/nxml/nxml-mode.el (nxml-electric-slash): Reindent when completion is enabled. Suggested by James Ahlborn . --- lisp/ChangeLog | 5 +++++ lisp/nxml/nxml-mode.el | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4167b8dcdb5..3ad57828a3d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-05-20 Stefan Monnier + + * nxml/nxml-mode.el (nxml-electric-slash): Reindent when completion is + enabled. Suggested by James Ahlborn (bug#8704). + 2011-05-20 Nix * files.el (basic-save-buffer-2): diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 993a6f7a2ab..93e5f9d25f4 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -1263,9 +1263,9 @@ on the line, reindent the line." (nxml-scan-error nil)) (when (and (eq (nxml-token-before) (point)) (eq xmltok-type 'partial-empty-element)) - (insert ">"))) - (when (and end-tag-p at-indentation) - (nxml-indent-line)))))) + (insert ">")))) + (when (and end-tag-p at-indentation) + (nxml-indent-line))))) (defun nxml-balanced-close-start-tag-block () "Close the start-tag before point with `>' and insert a balancing end-tag. -- 2.30.2